<template>
	<view>
		<choices v-for="item in 4" :key="item" @choice="choiceBuilding" :title="title+`${item+1}`+'号楼'">
		</choices>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		computed: {
			title() {
				return this.$store.state.house.building
			}
		},
		methods: {
			choiceBuilding(e) {
				console.log(e);
				this.$store.commit('house/setRoom', e)
				uni.navigateTo({
					url: '../choiceRoom/choiceRoom'
				})
			},
		}
	}
</script>

<style>

</style>
